package com.example.learn.hwod;

import java.util.ArrayList;
import java.util.Scanner;

public class _02敏感字段加密 {


    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        String s = sc.next();
        System.out.println(solution(s, k));

    }

    public static String solution(String s, int k) {
        ArrayList<String> list = new ArrayList<>();
        StringBuilder cmd = new StringBuilder();
        boolean flag = false;
        s+="_";
        for (int i = 0; i < s.length(); i++) {

            char c = s.charAt(i);

            if (c=='"') {
                flag =!flag;
            }
            if (c!='_'||flag) {
                cmd.append(c);
            }else if(cmd.length()>0){
                list.add(cmd.toString());
                cmd = new StringBuilder();
            }
        }
        if(k>= list.size()){
            return "ERROR";
        }else {
            list.set(k,"******");
            return String.join("_",list);
        }
    }
}
